package com.gaofei;

import cn.hutool.core.date.DateUtil;
import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.lang.generator.SnowflakeGenerator;
import cn.hutool.core.util.IdUtil;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.IOException;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.UUID;

@SpringBootApplication
public class UploadApp {
    public static void main(String[] args) {
        SpringApplication.run(UploadApp.class);
//        String format = DateUtil.format(new Date(), "yyyy-MM-dd HH:mm:ss");
//        long time = new Date().getTime();//毫秒值
//        format=format.replace("-","").replace(":","").replace(" ","")+time;
//        System.out.println(format);
//
//        String s = UUID.randomUUID().toString();
//
//        String snowflakeNextIdStr = IdUtil.getSnowflakeNextIdStr();
//        System.out.println(snowflakeNextIdStr);
    }


}
